package com.cskaoyan.model.vx.vo;

import javax.xml.crypto.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class WxCouponMyListVo {

    /**
     * total : 2
     * pages : 1
     * limit : 10
     * page : 1
     * list : [{"min":99,"name":"可兑换优惠券","available":false,"discount":15,"startTime":"2021-12-02 15:55:33","id":6,"tag":"仅兑换领券","endTime":"2021-12-09 15:55:33","cid":8,"desc":"全场通用"},{"min":9,"name":"限时满减","available":false,"discount":5,"startTime":"2021-12-02 11:51:09","id":5,"tag":"所有商品无限制","endTime":"2022-01-01 11:51:09","cid":9,"desc":"所有商品"}]
     */
    private int total;
    private int pages;
    private int limit;
    private int page;
    private List<ListEntity> list;

    public void setTotal(int total) {
        this.total = total;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public void setList(List<ListEntity> list) {
        this.list = list;
    }

    public int getTotal() {
        return total;
    }

    public int getPages() {
        return pages;
    }

    public int getLimit() {
        return limit;
    }

    public int getPage() {
        return page;
    }

    public List<ListEntity> getList() {
        return list;
    }

    public static class ListEntity {
        /**
         * min : 99.0
         * name : 可兑换优惠券
         * available : false
         * discount : 15.0
         * startTime : 2021-12-02 15:55:33
         * id : 6
         * tag : 仅兑换领券
         * endTime : 2021-12-09 15:55:33
         * cid : 8
         * desc : 全场通用
         */
        private BigDecimal min;
        private String name;
        private boolean available;
        private BigDecimal discount;
        private Date startTime;
        private int id;
        private String tag;
        private Date endTime;
        private int cid;
        private String desc;

        public void setMin(BigDecimal min) {
            this.min = min;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setAvailable(boolean available) {
            this.available = available;
        }

        public void setDiscount(BigDecimal discount) {
            this.discount = discount;
        }

        public void setStartTime(Date startTime) {
            this.startTime = startTime;
        }

        public void setId(int id) {
            this.id = id;
        }

        public void setTag(String tag) {
            this.tag = tag;
        }

        public void setEndTime(Date endTime) {
            this.endTime = endTime;
        }

        public void setCid(int cid) {
            this.cid = cid;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public BigDecimal getMin() {
            return min;
        }

        public String getName() {
            return name;
        }

        public boolean isAvailable() {
            return available;
        }

        public BigDecimal getDiscount() {
            return discount;
        }

        public Date getStartTime() {
            return startTime;
        }

        public int getId() {
            return id;
        }

        public String getTag() {
            return tag;
        }

        public Date getEndTime() {
            return endTime;
        }

        public int getCid() {
            return cid;
        }

        public String getDesc() {
            return desc;
        }
    }
}
